<?php
/**
* @package   auto_occasion
* @subpackage annonce
* @author    your name
* @copyright 2011 your name
* @link      http://www.yourwebsite.undefined
* @license    All rights reserved
*/

/**
 * FAQ
 */
class FoAnnonceFAQCtrl extends jController {

   /**
    * FAQ
    */
    function index() {
        jClasses::inc ("annonce~annonceFormuleSrv") ;
        jClasses::inc('publicite~pubSrv');
        jClasses::inc('commun~common');
        jClasses::inc('commun~parametre');

        $rep = $this->getResponse('htmlFo');

        jClasses::inc('commun~parametre');
        
        $rep->menusActifs = frontHtmlResponse::MENU_FAQ ;
        $rep->breadCrumb  = array(frontHtmlResponse::MENU_ACCUEIL, frontHtmlResponse::MENU_FAQ) ;

		$rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/pub.js');
        
          
        $rep->bodyTpl = 'annonce~FoAnnonceFAQ';
        
        //xml pour le header : title, desc, keywords
        $headerContent = common::readXml(PATH_XML_FAQ);
        $rep->title				= isset($headerContent->title)?$headerContent->title:'';
		$headerContent->title			= isset($headerContent->title)?$headerContent->title:'' ;
		$headerContent->keywords		= isset($headerContent->keywords)? $headerContent->keywords:'' ;
		$headerContent->desc			= isset($headerContent->desc)? $headerContent->desc:'' ;
		$keywords						= "<meta name='keywords' content='" . $headerContent->keywords . "'>" ;
		$description					= "<meta name='Description' content='" . $headerContent->desc. "'>" ;
        $rep->addHeadContent($keywords);
        $rep->addHeadContent($description);
        // ---

        //pubHidden et rightContent
        $paramPub = array('p1'=>PUB_RIGHT_1_ID,'p2'=>PUB_RIGHT_2_ID,'p3'=>PUB_RIGHT_3_ID,'p4'=>PUB_RIGHT_4_ID,'p5'=>PUB_RIGHT_5_ID,'p6'=>PUB_RIGHT_6_ID);
        $rep->body->assignZone('oZonePubHidden', 'commun~FoPubHidden',$paramPub);
        

        $rep->body->assignZone('oZoneRightContent', 'commun~FoRightContent');
        //---
       
        return $rep;
    }

   /**
    * Conseil assurance
    * @link : http://www.auto-occasion.fr/assurance-auto/assurance-auto.php
    */
    function assurance() {
        jClasses::inc ("annonce~annonceFormuleSrv") ;
        jClasses::inc('publicite~pubSrv');

        $rep = $this->getResponse('htmlFo');

        jClasses::inc('commun~parametre');
        
        $rep->menusActifs = frontHtmlResponse::MENU_ASSURANCE ;
        $rep->breadCrumb  = array(frontHtmlResponse::MENU_ACCUEIL, frontHtmlResponse::MENU_ASSURANCE) ;

        $rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/popup.js');
		$rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/pub.js');
        
           
        $rep->bodyTpl = 'annonce~FoAnnonceConseilAssurance';

        //xml pour le header : title, desc, keywords
        jClasses::inc('commun~common');
        $headerContent = common::readXml(PATH_XML_CONSEIL_ASSURANCE);
        $rep->title						= isset($headerContent->title)?$headerContent->title:'';
		$headerContent->title			= isset($headerContent->title)?$headerContent->title:'' ;
		$headerContent->keywords		= isset($headerContent->keywords)? $headerContent->keywords:'' ;
		$headerContent->desc			= isset($headerContent->desc)? $headerContent->desc:'' ;
		$keywords						= "<meta name='keywords' content='" . $headerContent->keywords . "'>" ;
		$description					= "<meta name='Description' content='" . $headerContent->desc. "'>" ;
        $rep->addHeadContent($keywords);
        $rep->addHeadContent($description);
        // ---

        //pubHidden et rightContent
        $paramPub = array('p1'=>PUB_RIGHT_1_ID,'p2'=>PUB_RIGHT_2_ID,'p3'=>PUB_RIGHT_3_ID,'p4'=>PUB_RIGHT_4_ID,'p5'=>PUB_RIGHT_5_ID,'p6'=>PUB_RIGHT_6_ID);
        $rep->body->assignZone('oZonePubHidden', 'commun~FoPubHidden',$paramPub);
        

        $rep->body->assignZone('oZoneRightContent', 'commun~FoRightContent');
        //---
       
        return $rep;
    }


   /**
    * Conseil credit
    * @link : http://www.auto-occasion.fr/assurance-auto/assurance-auto.php
    */
    function credit() {
        jClasses::inc ("annonce~annonceFormuleSrv") ;
        jClasses::inc('publicite~pubSrv');

        $rep = $this->getResponse('htmlFo');

        jClasses::inc('commun~parametre');
        
        $rep->menusActifs = frontHtmlResponse::MENU_CREDIT ;
        $rep->breadCrumb  = array(frontHtmlResponse::MENU_ACCUEIL, frontHtmlResponse::MENU_CREDIT) ;

        $rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/popup.js');
		$rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/pub.js');
        
            
        $rep->bodyTpl = 'annonce~FoAnnonceConseilCredit';

        //xml pour le header : title, desc, keywords
        jClasses::inc('commun~common');
        $headerContent = common::readXml(PATH_XML_CONSEIL_CRD_AUTO);
        $rep->title						= isset($headerContent->title)?$headerContent->title:'';
		$headerContent->title			= isset($headerContent->title)?$headerContent->title:'' ;
		$headerContent->keywords		= isset($headerContent->keywords)? $headerContent->keywords:'' ;
		$headerContent->desc			= isset($headerContent->desc)? $headerContent->desc:'' ;
		$keywords						= "<meta name='keywords' content='" . $headerContent->keywords . "'>" ;
		$description					= "<meta name='Description' content='" . $headerContent->desc. "'>" ;
        $rep->addHeadContent($keywords);
        $rep->addHeadContent($description);
        // ---

        //pubHidden et rightContent
        $paramPub = array('p1'=>PUB_RIGHT_1_ID,'p2'=>PUB_RIGHT_2_ID,'p3'=>PUB_RIGHT_3_ID,'p4'=>PUB_RIGHT_4_ID,'p5'=>PUB_RIGHT_5_ID,'p6'=>PUB_RIGHT_6_ID);
        $rep->body->assignZone('oZonePubHidden', 'commun~FoPubHidden',$paramPub);
        

        $rep->body->assignZone('oZoneRightContent', 'commun~FoRightContent');
        //---
       
        return $rep;
    }

   /**
    * Liens utiles : listing des catégories
    * @link : http://www.auto-occasion.fr/vente-voiture/sites/index.php
    */
    function utile() {
        jClasses::inc ("annonce~annonceFormuleSrv") ;
        jClasses::inc('publicite~pubSrv');

        $rep = $this->getResponse('htmlFo');

        jClasses::inc('commun~parametre');
        
        $rep->menusActifs = frontHtmlResponse::MENU_SITE_UTILE ;
        $rep->breadCrumb  = array(frontHtmlResponse::MENU_ACCUEIL, frontHtmlResponse::MENU_SITE_UTILE) ;

        $rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/popup.js');
		$rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/pub.js');
        
        

        jClasses::inc('lienUtile~lienUtileSrv');
        $liens = lienUtileSrv::liste();

        $rep->bodyTpl = 'annonce~FoAnnonceSiteUtile';

        //xml pour le header : title, desc, keywords
        jClasses::inc('commun~common');
        $headerContent = common::readXml(PATH_XML_LIEN_AUTO);
		$rep->title						= isset($headerContent->title)?$headerContent->title:'';
		$headerContent->title			= isset($headerContent->title)?$headerContent->title:'' ;
		$headerContent->keywords		= isset($headerContent->keywords)? $headerContent->keywords:'' ;
		$headerContent->desc			= isset($headerContent->desc)? $headerContent->desc:'' ;
		$keywords						= "<meta name='keywords' content='" . $headerContent->keywords . "'>" ;
		$description					= "<meta name='Description' content='" . $headerContent->desc. "'>" ;
        $rep->addHeadContent($keywords);
        $rep->addHeadContent($description);
        // ---

       //pubHidden et rightContent
        $paramPub = array('p1'=>PUB_RIGHT_1_ID,'p2'=>PUB_RIGHT_2_ID,'p3'=>PUB_RIGHT_3_ID,'p4'=>PUB_RIGHT_4_ID,'p5'=>PUB_RIGHT_5_ID,'p6'=>PUB_RIGHT_6_ID);
        $rep->body->assignZone('oZonePubHidden', 'commun~FoPubHidden',$paramPub);
        

        $rep->body->assignZone('oZoneRightContent', 'commun~FoRightContent');
        //---
        $rep->body->assign('liens', $liens);

        return $rep;
    }
   /**
    * Liens utiles : listing des liens des catégories
    * @link : http://www.auto-occasion.fr/vente-voiture/sites/index.php
    */
    function utileLinks() {
        jClasses::inc ("annonce~annonceFormuleSrv") ;
        jClasses::inc('publicite~pubSrv');

        $rep = $this->getResponse('htmlFo');

        jClasses::inc('commun~parametre');
        
        $rep->menusActifs = frontHtmlResponse::MENU_SITE_UTILE ;

        $rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/popup.js');
		$rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/pub.js');
        
            

        jClasses::inc('lienUtile~lienUtileSrv');
        $liens = lienUtileSrv::liste();

        $rep->bodyTpl = 'annonce~FoAnnonceSiteUtileLinks';

        $key = $this->intParam('id', 0);
        
        $rep->breadCrumb  = array(frontHtmlResponse::MENU_ACCUEIL, frontHtmlResponse::MENU_SITE_UTILE_LINKS, $liens[$key]->cat_name) ;

        //xml pour le header : title, desc, keywords
        jClasses::inc('commun~common');
        $headerContent = common::readXml(PATH_XML_LIEN_AUTO);
        $rep->title					=	isset($headerContent->title)?$headerContent->title:'' ;
		$headerContent->keywords	=	isset($headerContent->keywords)?$headerContent->keywords:'' ;
		$headerContent->desc		=	isset($headerContent->desc)?$headerContent->desc:'' ;
		$keywords					= "<meta name='keywords' content='" . $headerContent->keywords . "'>" ;
		$description				= "<meta name='Description' content='" . $headerContent->desc. "'>" ;
        $rep->addHeadContent($keywords);
        $rep->addHeadContent($description);
        // ---

        //pubHidden et rightContent
        $paramPub = array('p1'=>PUB_RIGHT_1_ID,'p2'=>PUB_RIGHT_2_ID,'p3'=>PUB_RIGHT_3_ID,'p4'=>PUB_RIGHT_4_ID,'p5'=>PUB_RIGHT_5_ID,'p6'=>PUB_RIGHT_6_ID);
        $rep->body->assignZone('oZonePubHidden', 'commun~FoPubHidden',$paramPub);
        

        $rep->body->assignZone('oZoneRightContent', 'commun~FoRightContent');
        //---
        $rep->body->assign('liens', $liens[$key]);
       
        return $rep;
    }

   /**
    * carte grise
    * @link : http://www.auto-occasion.fr/carte-grise/carte-grise.php
    */
    function carteGrise() {
        jClasses::inc('publicite~pubSrv');

        $rep = $this->getResponse('htmlFo');

        jClasses::inc('commun~parametre');
        
        $rep->menusActifs = frontHtmlResponse::MENU_CARTE_GRISE ;
        $rep->breadCrumb  = array(frontHtmlResponse::MENU_ACCUEIL, frontHtmlResponse::MENU_CARTE_GRISE) ;

        $rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/popup.js');
		$rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/pub.js');
        
           


        $rep->bodyTpl = 'annonce~FoAnnonceCarteGrise';

        //xml pour le header : title, desc, keywords
        jClasses::inc('commun~common');
        $headerContent = common::readXml(PATH_XML_CARTE_GRISE);
        $rep->title					=	isset($headerContent->title)?$headerContent->title:'' ;
		$headerContent->keywords	=	isset($headerContent->keywords)?$headerContent->keywords:'' ;
		$headerContent->desc		=	isset($headerContent->desc)?$headerContent->desc:'' ;
		$keywords					= "<meta name='keywords' content='" . $headerContent->keywords . "'>" ;
		$description				= "<meta name='Description' content='" . $headerContent->desc. "'>" ;
        $rep->addHeadContent($keywords);
        $rep->addHeadContent($description);
        // ---

        //pubHidden et rightContent
        $paramPub = array('p1'=>PUB_RIGHT_1_ID,'p2'=>PUB_RIGHT_2_ID,'p3'=>PUB_RIGHT_3_ID,'p4'=>PUB_RIGHT_4_ID,'p5'=>PUB_RIGHT_5_ID,'p6'=>PUB_RIGHT_6_ID);
        $rep->body->assignZone('oZonePubHidden', 'commun~FoPubHidden',$paramPub);
        

        $rep->body->assignZone('oZoneRightContent', 'commun~FoRightContent');
        //---
       
        return $rep;
    }


   /**
    * credit auto
    * @link : http://www.auto-occasion.fr/credit_auto/credit-auto.php
    */
    function creditAuto() {
        jClasses::inc('publicite~pubSrv');

        $rep = $this->getResponse('htmlFo');

        jClasses::inc('commun~parametre');
        
        $rep->menusActifs = frontHtmlResponse::MENU_CREDIT;
        $rep->breadCrumb  = array(frontHtmlResponse::MENU_ACCUEIL, frontHtmlResponse::MENU_CREDIT) ;

        $rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/popup.js');
		$rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/pub.js');
        
          

        $rep->bodyTpl = 'annonce~FoAnnonceCreditAuto';

        //xml pour le header : title, desc, keywords
        jClasses::inc('commun~common');
        $headerContent = common::readXml(PATH_XML_CREDIT_AUTO);
        $rep->title					=	isset($headerContent->title)?$headerContent->title:'' ;
		$headerContent->keywords	=	isset($headerContent->keywords)?$headerContent->keywords:'' ;
		$headerContent->desc		=	isset($headerContent->desc)?$headerContent->desc:'' ;
		$keywords					= "<meta name='keywords' content='" . $headerContent->keywords . "'>" ;
		$description				= "<meta name='Description' content='" . $headerContent->desc. "'>" ;
        $rep->addHeadContent($keywords);
        $rep->addHeadContent($description);
        // ---
        //pubHidden et rightContent
        $paramPub = array('p1'=>PUB_RIGHT_1_ID,'p2'=>PUB_RIGHT_2_ID,'p3'=>PUB_RIGHT_3_ID,'p4'=>PUB_RIGHT_4_ID,'p5'=>PUB_RIGHT_5_ID,'p6'=>PUB_RIGHT_6_ID);
        $rep->body->assignZone('oZonePubHidden', 'commun~FoPubHidden',$paramPub);
        

        $rep->body->assignZone('oZoneRightContent', 'commun~FoRightContent');
        //---
       
        return $rep;
    }
   /**
    * assurance auto 
    * @link : http://www.auto-occasion.fr/assurance-auto/comparateur-assurance-auto.php
    */
    function assuranceAuto() {
        jClasses::inc('publicite~pubSrv');

        $rep = $this->getResponse('htmlFo');

        jClasses::inc('commun~parametre');
        
        $rep->menusActifs = frontHtmlResponse::MENU_ASSURANCE_AUTO ;
        $rep->breadCrumb  = array(frontHtmlResponse::MENU_ACCUEIL, frontHtmlResponse::MENU_ASSURANCE_AUTO) ;

        $rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/popup.js');
		$rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/pub.js');
        
            

        $rep->bodyTpl = 'annonce~FoAnnonceAssuranceAuto';

        //xml pour le header : title, desc, keywords
        jClasses::inc('commun~common');
        $headerContent = common::readXml(PATH_XML_ASSURANCE_AUTO);
        $rep->title					=	isset($headerContent->title)?$headerContent->title:'' ;
		$headerContent->keywords	=	isset($headerContent->keywords)?$headerContent->keywords:'' ;
		$headerContent->desc		=	isset($headerContent->desc)?$headerContent->desc:'' ;
		$keywords					= "<meta name='keywords' content='" . $headerContent->keywords . "'>" ;
		$description				= "<meta name='Description' content='" . $headerContent->desc. "'>" ;
        $rep->addHeadContent($keywords);
        $rep->addHeadContent($description);
        // ---
       //pubHidden et rightContent
        $paramPub = array('p1'=>PUB_RIGHT_1_ID,'p2'=>PUB_RIGHT_2_ID,'p3'=>PUB_RIGHT_3_ID,'p4'=>PUB_RIGHT_4_ID,'p5'=>PUB_RIGHT_5_ID,'p6'=>PUB_RIGHT_6_ID);
        $rep->body->assignZone('oZonePubHidden', 'commun~FoPubHidden',$paramPub);
        

        $rep->body->assignZone('oZoneRightContent', 'commun~FoRightContent');
        //---
       
        return $rep;
    }

   /**
    * Vendre sa voiture
    * @link : http://www.auto-occasion.fr/vente-vehicule-occasion/vendre-sa-voiture.php
    */
    function vendreVoiture() {
        jClasses::inc('publicite~pubSrv');

        $rep = $this->getResponse('htmlFo');

        jClasses::inc('commun~parametre');
        
        $rep->menusActifs = frontHtmlResponse::MENU_ANNONCE_GESTION ;
        $rep->breadCrumb  = array(frontHtmlResponse::MENU_ACCUEIL, frontHtmlResponse::MENU_ANNONCE_GESTION) ;

        $rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/popup.js');
		$rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/pub.js');
        
          

        $rep->bodyTpl = 'annonce~FoAnnonceVendreVoiture';

        //xml pour le header : title, desc, keywords
        jClasses::inc('commun~common');
        $headerContent = common::readXml(PATH_XML_VENDRE_VOITURE);
        $rep->title					=	isset($headerContent->title)?$headerContent->title:'' ;
		$headerContent->keywords	=	isset($headerContent->keywords)?$headerContent->keywords:'' ;
		$headerContent->desc		=	isset($headerContent->desc)?$headerContent->desc:'' ;
		$keywords					= "<meta name='keywords' content='" . $headerContent->keywords . "'>" ;
		$description				= "<meta name='Description' content='" . $headerContent->desc. "'>" ;
        $rep->addHeadContent($keywords);
        $rep->addHeadContent($description);
        // ---
        //pubHidden et rightContent
        $paramPub = array('p1'=>PUB_RIGHT_1_ID,'p2'=>PUB_RIGHT_2_ID,'p3'=>PUB_RIGHT_3_ID,'p4'=>PUB_RIGHT_4_ID,'p5'=>PUB_RIGHT_5_ID,'p6'=>PUB_RIGHT_6_ID);
        $rep->body->assignZone('oZonePubHidden', 'commun~FoPubHidden',$paramPub);
        

        $rep->body->assignZone('oZoneRightContent', 'commun~FoRightContent');
        //---
       
        return $rep;
    }

   /**
    * Piece auto
    * @link : http://piece-auto.auto-occasion.fr/
    */
    function pieceAuto() {
        jClasses::inc('publicite~pubSrv');

        $rep = $this->getResponse('htmlFo');

        jClasses::inc('annonce~vendeurSrv');
        
        $rep->menusActifs = frontHtmlResponse::MENU_PIECE_AUTO ;
        $rep->breadCrumb  = array(frontHtmlResponse::MENU_ACCUEIL, frontHtmlResponse::MENU_PIECE_AUTO) ;

		$rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/pub.js');
        
           

        $rep->bodyTpl = 'annonce~FoAnnoncePieceAuto';

         //xml pour le header : title, desc, keywords
        jClasses::inc('commun~common');
        $headerContent = common::readXml(PATH_XML_PIECE_AUTO);
        $rep->title					=	isset($headerContent->title)?$headerContent->title:'' ;
		$headerContent->keywords	=	isset($headerContent->keywords)?$headerContent->keywords:'' ;
		$headerContent->desc		=	isset($headerContent->desc)?$headerContent->desc:'' ;
		$keywords					= "<meta name='keywords' content='" . $headerContent->keywords . "'>" ;
		$description				= "<meta name='Description' content='" . $headerContent->desc. "'>" ;
        $rep->addHeadContent($keywords);
        $rep->addHeadContent($description);
        // ---
        
        $pieces = vendeurSrv::getPiecesByMarque();
        $rep->body->assign('pieces', $pieces);
        //pubHidden et rightContent
        $paramPub = array('p1'=>PUB_RIGHT_1_ID,'p2'=>PUB_RIGHT_2_ID,'p3'=>PUB_RIGHT_3_ID,'p4'=>PUB_RIGHT_4_ID,'p5'=>PUB_RIGHT_5_ID,'p6'=>PUB_RIGHT_6_ID);
        $rep->body->assignZone('oZonePubHidden', 'commun~FoPubHidden',$paramPub);
        

        $rep->body->assignZone('oZoneRightContent', 'commun~FoRightContent');
        //---
       
        return $rep;
    }
   /**
    * liste Piece auto
    * @return type 
    */
    function listePieceAuto() {
        
        jClasses::inc('annonce~vendeurSrv');
        jClasses::inc ("commun~CNavBar") ;

        $rep = $this->getResponse('htmlFo');
        //xml pour le header : title, desc, keywords
        jClasses::inc('commun~common');
        $headerContent = common::readXml(PATH_XML_PIECE_AUTO);
        $rep->title					=	isset($headerContent->title)?$headerContent->title:'' ;
		$headerContent->keywords	=	isset($headerContent->keywords)?$headerContent->keywords:'' ;
		$headerContent->desc		=	isset($headerContent->desc)?$headerContent->desc:'' ;
		$keywords					= "<meta name='keywords' content='" . $headerContent->keywords . "'>" ;
		$description				= "<meta name='Description' content='" . $headerContent->desc. "'>" ;
        $rep->addHeadContent($keywords);
        $rep->addHeadContent($description);
        // ---

        $rep->menusActifs = frontHtmlResponse::MENU_PIECE_AUTO ;
        $rep->breadCrumb  = array(frontHtmlResponse::MENU_ACCUEIL, frontHtmlResponse::MENU_PIECE_AUTO) ;

        $rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/popup.js');
		$rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/pub.js');
        
            

        $rep->bodyTpl = 'annonce~FoAnnonceListePieces';
        
        //liste les pièces par marque choisit
        $marqueSelected = $this->stringParam('marque','');
        $modeleSelected = $this->stringParam('modele','');
        $pieceSelected  = $this->stringParam('piece' ,'');
        $iCurrentPage   = $this->intParam('iCurrentPage', 1);
        $iParPage       = $this->intParam('iParPage', 20);
        $tri            = $this->intParam('tri', 0);
        
        //pagination
        if ($iCurrentPage> 1){
            $iDebutListe = ($iCurrentPage-1) * PIECES_NBITEMPARPAGE; 
        }else{
            $iDebutListe = 0 ;
        }
        $oNavBar = new CNavBar (20, 7) ;
        $oNavBar->iCurrPage = $iCurrentPage;
        $result         = vendeurSrv::getAllPiecesByMarque($marqueSelected,$iDebutListe,$modeleSelected,$pieceSelected, $iParPage,$tri);
        $listePieces    = $result['pieces'];
        $modeles        = $result['modeles'];
        $piecesParModele= $result['piecesParModele'];
        
        $oNavBar->normalizeBar ($result['nbRecords']) ;
        $oNavBar->mergeBar ();
        // ------

         
        
        $rep->body->assign('iCurrentPage', ($iDebutListe + 1));
        $rep->body->assign('iParPage', $iParPage);
        $rep->body->assign('oNavBar', $oNavBar);
        $rep->body->assign('nbRes', $result['nbRecords']);
        $rep->body->assign('modeles', $modeles);
        $rep->body->assign('piecesParModele', $piecesParModele);
        $rep->body->assign('listePieces', $listePieces);
        $rep->body->assign('marqueSelected', $marqueSelected);
        $rep->body->assign('modeleSelected', $modeleSelected);
        $rep->body->assign('pieceSelected', $pieceSelected);
        $rep->body->assign('tri', $tri);
        
        //pubHidden et rightContent
        $paramPub = array('p1'=>PUB_RIGHT_1_ID,'p2'=>PUB_RIGHT_2_ID,'p3'=>PUB_RIGHT_3_ID,'p4'=>PUB_RIGHT_4_ID,'p5'=>PUB_RIGHT_5_ID,'p6'=>PUB_RIGHT_6_ID);
        $rep->body->assignZone('oZonePubHidden', 'commun~FoPubHidden',$paramPub);
        

        $rep->body->assignZone('oZoneRightContent', 'commun~FoRightContent');
        //---
       
        return $rep;
    }
    /**
    * Detail Piece auto
    * @link : http://piece-auto.auto-occasion.fr/
    */
    function detailPieceAuto() {
        jClasses::inc("accueil~GoogleMapAPI");
        jClasses::inc('publicite~pubSrv');
        jClasses::inc('commun~parametre');
        jClasses::inc('annonce~vendeurSrv');
        jClasses::inc ("commun~CNavBar") ;

        $rep = $this->getResponse('htmlFo');

        
         //xml pour le header : title, desc, keywords
        jClasses::inc('commun~common');
        $headerContent = common::readXml(PATH_XML_PIECE_AUTO);
        $rep->title					=	isset($headerContent->title)?$headerContent->title:'' ;
		$headerContent->keywords	=	isset($headerContent->keywords)?$headerContent->keywords:'' ;
		$headerContent->desc		=	isset($headerContent->desc)?$headerContent->desc:'' ;
		$keywords					= "<meta name='keywords' content='" . $headerContent->keywords . "'>" ;
		$description				= "<meta name='Description' content='" . $headerContent->desc. "'>" ;
        $rep->addHeadContent($keywords);
        $rep->addHeadContent($description);
        // ---
        
        $rep->menusActifs = frontHtmlResponse::MENU_DETAIL_PIECE_AUTO ;
        $rep->breadCrumb  = array(frontHtmlResponse::MENU_ACCUEIL, frontHtmlResponse::MENU_DETAIL_PIECE_AUTO) ;

        $rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/popup.js');
		$rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/pub.js');
        
          
        $pub_horiz = pubSrv::getByRubriqueAndLocation(PUB_PIECE_AUTO, PUB_PIECE_H_ID);    
        $pub_verti = pubSrv::getByRubriqueAndLocation(PUB_PIECE_AUTO, PUB_PIECE_V_ID);    

        $rep->bodyTpl = 'annonce~FoAnnonceDetailPiece';

        
        $marqueSelected = $this->stringParam('marque','');
        $modeleSelected = $this->stringParam('modele','');
        $pieceSelected  = $this->stringParam('piece' ,'');
        $iCurrentPage   = $this->intParam('iCurrentPage', 1);
        $iParPage       = $this->intParam('iParPage', 1);
        $tri            = $this->intParam('tri', 0);
        
        //pagination
        $iDebutListe = $iCurrentPage-1;
        $oNavBar = new CNavBar (20, 7) ;
        $oNavBar->iCurrPage = $iCurrentPage;
        
        $result         = vendeurSrv::getAllPiecesByMarque($marqueSelected,$iDebutListe,$modeleSelected,$pieceSelected, $iParPage,$tri);
        $listePieces    = $result['pieces'];
        $oNavBar->iNbPages = $result['nbRecords'];    
        //$oNavBar->normalizeBar ($result['nbRecords']) ;
        $oNavBar->mergeBar (); 
        // ------
        
        
        $piece   = common::chargeParId($listePieces[0]->idPiece, 'ao_piece_occasion');
        
        // google map du vendeur 
        // google map
        $map = new GoogleMapAPI('map');
		// enter YOUR Google Map Key
		
		$map->setAPIKey(GOOGLE_MAP_API_KEY_DEV);
		//taille de la map
		$map->setHeight("300");
		$map->setWidth("350");
		//on desactive la barre de coté?
		$map->disableSidebar();
		//DesActive les  boutons(map/satellite/hybrid).
		$map->disableTypeControls();
		//Quel est le type de carte par defaut ? (map/satellite/hybrid)
		$map->setMapType('map'); // default
		$map->setZoomLevel(9); // zoom
		//On déssactive les boutons pour afficher la direction d'un point a l'autre
		$map->disableDirections();
		// Permet de definir le zoom automatiquement afin de voir tous les marqueurs d'un coup.
		//$map->enableZoomEncompass();
		//Active la mini map en bas a droite
		$map->enableOverviewControl();
		//permet de définir l'icone sur la map, nous on change pas
		//$map->setMarkerIcon('http://www.canadianwinter.ca/uploads/icon/marker_cw.png','http://www.canadianwinter.ca/uploads/icon/marker_cw_shadow.png',6,20,10,1);
 
        //CREATION DES MARQUEURS
        //on peut egalement utiliser addMarkerByCoords() si on a déj�  la latitude et longitude des points
        //Exemple basique
       // create some map markers
        $map->addMarkerByAddress($piece->P_ville , "<div><b>$piece->P_casse</b><p>$piece->P_adresse</p><p>$piece->P_codePostal $piece->P_ville</p><p>Tél : $piece->P_telephone</p></div>");
            
        $rep->body->assign('google_map_header',$map->getHeaderJS());
        $rep->body->assign('google_map_js',$map->getMapJS());
        $rep->body->assign('google_map',$map->getMap());
        // ---- fin google map
        
        
        
        $rep->body->assign('piece', $piece);
        $rep->body->assign('oNavBar', $oNavBar);
        $rep->body->assign('marqueSelected', $marqueSelected);
        $rep->body->assign('modeleSelected', $modeleSelected);
        $rep->body->assign('pieceSelected', $pieceSelected);
        $rep->body->assign('tri', $tri);
        
        //pub et timeout
        //pubHidden et rightContent
        $paramPub = array('p1'=>PUB_RIGHT_1_ID,'p2'=>PUB_RIGHT_2_ID,'p3'=>PUB_RIGHT_3_ID,'p4'=>PUB_RIGHT_4_ID,'p5'=>PUB_RIGHT_5_ID,'p6'=>PUB_RIGHT_6_ID);
        $rep->body->assignZone('oZonePubHidden', 'commun~FoPubHidden',$paramPub);
        
        $paramRight = array('ad'=>1,'no_need_cc2'=>1);

        $rep->body->assignZone('oZoneRightContent', 'commun~FoRightContent', $paramRight);
        //---
        $rep->body->assign('pub_horiz', $pub_horiz);
        $rep->body->assign('pub_verti', $pub_verti);
        
       // ------
        
        return $rep;
    }
    /*
     * funtion rediriger vers la page recherche
     */
    function search(){
        jClasses::inc('commun~sessionSrv');
        $rep = $this->getResponse('redirect');
        
        $lMarque = $this->stringParam('lMarque');
        $lModele = $this->stringParam('lModele');
        $_SESSION['SESS_ANNONCE_SEARCH'] = serialize(sessionSrv::init());
        
        $rep->action = 'recherche~FoRecherche:index' ;
        $rep->params = array('lMarque'=>$lMarque,'lModele'=>$lModele) ;

        return $rep;
    }
   /**
    * Contact
    * @link : http://www.auto-occasion.fr/contact/index.php
    */
    function contact() {

        jClasses::inc('publicite~pubSrv');
        jClasses::inc('commun~parametre');
        jClasses::inc('annonce~annonceCoordonneesSrv');
        jClasses::inc("commun~GetCaptcha") ;


        $civilite            = annonceCoordonneesSrv::listeCivilite();
        $idAnnonce           = $this->intParam('id', 0);	
        $lien                = $this->intParam('lien', 0);	

        // captcha
        $captchaPath = $GLOBALS['gJConfig']->urlengine["basePath"]. "captcha/temp/" . GetCaptcha::getCaptchaImg () . ".jpg" ;

        $rep = $this->getResponse('htmlFo');
        
        $rep->menusActifs = frontHtmlResponse::MENU_CONTACT ;
        $rep->breadCrumb  = array(frontHtmlResponse::MENU_ACCUEIL, frontHtmlResponse::MENU_CONTACT) ;

		$rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/pub.js');
        $rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/contact.js');
        
        
        
        if($idAnnonce){
            $lien = $_SERVER['SERVER_NAME'] . jUrl::get('recherche~FoFiche:index',array('id'=>$idAnnonce));
            $lien = 'http://' .  $lien;
        }


        $rep->bodyTpl = 'annonce~FoAnnonceContact';

        //xml pour le header : title, desc, keywords
        jClasses::inc('commun~common');
        $headerContent = common::readXml(PATH_XML_CONTACT);
        $rep->title					=	isset($headerContent->title)?$headerContent->title:'' ;
		$headerContent->keywords	=	isset($headerContent->keywords)?$headerContent->keywords:'' ;
		$headerContent->desc		=	isset($headerContent->desc)?$headerContent->desc:'' ;
		$keywords					= "<meta name='keywords' content='" . $headerContent->keywords . "'>" ;
		$description				= "<meta name='Description' content='" . $headerContent->desc. "'>" ;
        $rep->addHeadContent($keywords);
        $rep->addHeadContent($description);

        // ---
        //pubHidden et rightContent
        $paramPub = array('p1'=>PUB_RIGHT_1_ID,'p2'=>PUB_RIGHT_2_ID,'p3'=>PUB_RIGHT_3_ID,'p4'=>PUB_RIGHT_4_ID,'p5'=>PUB_RIGHT_5_ID,'p6'=>PUB_RIGHT_6_ID);
        $rep->body->assignZone('oZonePubHidden', 'commun~FoPubHidden',$paramPub);
        

        $rep->body->assignZone('oZoneRightContent', 'commun~FoRightContent');
        //---
        $rep->body->assign('civilite', $civilite);
        $rep->body->assign('idAnnonce', $idAnnonce);
        $rep->body->assign('lien', $lien);
        $rep->body->assign('lien', $lien);
        $rep->body->assign('captchaPath', $captchaPath);
       
        return $rep;
    }
     /**
    * Contact - mail + page de confirmation
    * @link : http://www.auto-occasion.fr/contact/index.php
    */
    function contactConfirm() {

        jClasses::inc('publicite~pubSrv');
        jClasses::inc('commun~parametre');
        jClasses::inc('annonce~annonceCoordonneesSrv');
        jClasses::inc("commun~GetCaptcha") ;

        $rep = $this->getResponse('htmlFo');
        
        $rep->menusActifs = frontHtmlResponse::MENU_CONFIRMATION_CONTACT;
        $rep->breadCrumb  = array(frontHtmlResponse::MENU_ACCUEIL, frontHtmlResponse::MENU_CONFIRMATION_CONTACT) ;

		$rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/pub.js');
        
        

        //récupération des données du formulaire
        $datas = new stdclass();
        $datas->id          = $this->intParam('idAnnonce', 0);
        $datas->civilite    = $this->stringParam('civilite', '');
        $datas->nom         = $this->stringParam('nom', '');
        $datas->courriel    = $this->stringParam('email', '');
        $datas->prenom      = $this->stringParam('prenom', '');
        $datas->Subject     = $this->intParam('objet', 0);
        $datas->message     = $this->stringParam('message', '');
        $params             = parametre::get(PARAM_MAIL_PAGE_CONTACT);
        $datas->email       = $params->param_content;

        $datas->Username    = "Auto-occasion";
        $datas->FromName    = "Webmaster";
        
        // si problème page
        $lien = $this->stringParam('lien', '');
        
        switch ($datas->Subject) {
            case 1  : $datas->Subject = 'Posez une question concernant les annonces'; break;
            case 2  : $datas->Subject = 'Signalez un problème sur notre site'; break;
            case 3  : $datas->Subject = 'Contactez la rédaction'; break;
            case 4  : $datas->Subject = "Parler d'espace publicitaire (sur le journal ou sur le site) avec nos commerciaux"; break;
            case 5  : $datas->Subject = 'Ajouter une photo à mon annonce'; break;
            case 6  : $datas->Subject = 'Signalez un problème sur la page ' . $lien; break;
            default : $datas->Subject = ''; 
        }
        $datas->Subject = utf8_decode($datas->Subject);
        $datas->message = utf8_decode($datas->message);
        $datas->nom     = utf8_decode($datas->nom);
        $datas->prenom  = utf8_decode($datas->prenom);

        if($datas->id){
            $datas->path = $_SERVER['SERVER_NAME'] . jUrl::get('recherche~FoFiche:index',array('id'=>$datas->id));
            $datas->path = 'http://' .  $datas->path;
        }
        //envoi du mail - step 1
        jClasses::inc("commun~toolsMail");

        $tpl = new jTpl();
        $tpl->assign('datas', $datas);
        $datas->message =  $tpl->fetch('annonce~FoAnnonceContactMail');
        toolsMail::sendMail($datas);
        // --- fin: envoi mail

        $datas->message = utf8_encode($datas->message);
        $rep->bodyTpl = 'annonce~FoAnnonceContactConfirm';


        //pubHidden et rightContent
        $paramPub = array('p1'=>PUB_RIGHT_1_ID,'p2'=>PUB_RIGHT_2_ID,'p3'=>PUB_RIGHT_3_ID,'p4'=>PUB_RIGHT_4_ID,'p5'=>PUB_RIGHT_5_ID,'p6'=>PUB_RIGHT_6_ID);
        $rep->body->assignZone('oZonePubHidden', 'commun~FoPubHidden',$paramPub);
        

        $rep->body->assignZone('oZoneRightContent', 'commun~FoRightContent');
        //---
        $rep->body->assign('datas', $datas);
        return $rep;
    }
   /**
    * Piece auto
    * @link : http://www.auto-occasion.fr/mentions_legales/index.php
    */
    function mentionLegale() {
        jClasses::inc('publicite~pubSrv');

        $rep = $this->getResponse('htmlFo');

        jClasses::inc('commun~parametre');
        
        $rep->menusActifs = frontHtmlResponse::MENU_ANNONCE_MENTION_LEGALE ;
        $rep->breadCrumb  = array(frontHtmlResponse::MENU_ACCUEIL, frontHtmlResponse::MENU_ANNONCE_MENTION_LEGALE) ;

        $rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/popup.js');
		$rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/pub.js');
        
        

        $rep->bodyTpl = 'annonce~FoAnnonceMentionLegale';

        //xml pour le header : title, desc, keywords
        jClasses::inc('commun~common');
        $headerContent = common::readXml(PATH_XML_MENTIONS);
        $rep->title					=	isset($headerContent->title)?$headerContent->title:'' ;
		$headerContent->keywords	=	isset($headerContent->keywords)?$headerContent->keywords:'' ;
		$headerContent->desc		=	isset($headerContent->desc)?$headerContent->desc:'' ;
		$keywords					= "<meta name='keywords' content='" . $headerContent->keywords . "'>" ;
		$description				= "<meta name='Description' content='" . $headerContent->desc. "'>" ;
        $rep->addHeadContent($keywords);
        $rep->addHeadContent($description);
        // ---
        //pubHidden et rightContent
        $paramPub = array('p1'=>PUB_RIGHT_1_ID,'p2'=>PUB_RIGHT_2_ID,'p3'=>PUB_RIGHT_3_ID,'p4'=>PUB_RIGHT_4_ID,'p5'=>PUB_RIGHT_5_ID,'p6'=>PUB_RIGHT_6_ID);
        $rep->body->assignZone('oZonePubHidden', 'commun~FoPubHidden',$paramPub);
        

        $rep->body->assignZone('oZoneRightContent', 'commun~FoRightContent');
        //---
       
        return $rep;
    }
   
 function quiNousSommes() {
        jClasses::inc('publicite~pubSrv');

        $rep = $this->getResponse('htmlFo');

        jClasses::inc('commun~parametre');
        
        $rep->menusActifs = frontHtmlResponse::MENU_QUI_NOUS_SOMMES ;
        $rep->breadCrumb  = array(frontHtmlResponse::MENU_ACCUEIL, frontHtmlResponse::MENU_QUI_NOUS_SOMMES) ;

		$rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/pub.js');
        
           

        $rep->bodyTpl = 'annonce~FoAnnonceQuiNousSommes';

        //xml pour le header : title, desc, keywords
        jClasses::inc('commun~common');
        $headerContent = common::readXml(PATH_XML_PRESENTATION);
        $rep->title					=	isset($headerContent->title)?$headerContent->title:'' ;
		$headerContent->keywords	=	isset($headerContent->keywords)?$headerContent->keywords:'' ;
		$headerContent->desc		=	isset($headerContent->desc)?$headerContent->desc:'' ;
		$keywords					= "<meta name='keywords' content='" . $headerContent->keywords . "'>" ;
		$description				= "<meta name='Description' content='" . $headerContent->desc. "'>" ;
        $rep->addHeadContent($keywords);
        $rep->addHeadContent($description);
        // ---
        //pubHidden et rightContent
        $paramPub = array('p1'=>PUB_RIGHT_1_ID,'p2'=>PUB_RIGHT_2_ID,'p3'=>PUB_RIGHT_3_ID,'p4'=>PUB_RIGHT_4_ID,'p5'=>PUB_RIGHT_5_ID,'p6'=>PUB_RIGHT_6_ID);
        $rep->body->assignZone('oZonePubHidden', 'commun~FoPubHidden',$paramPub);
        

        $rep->body->assignZone('oZoneRightContent', 'commun~FoRightContent');
        //---
       
        return $rep;
    }
    /**
	* Vérification du captcha
	*
	*/
	function checkCaptcha (){ 

		$oRep = $this->getResponse ("json") ;
		jClasses::inc ("commun~GetCaptcha") ;

		$zCaptchaToCheck = $this->stringParam ("captcha", "") ;

		$oRep->data = GetCaptcha::verifyCaptcha ($zCaptchaToCheck) ? 1 : 0 ;

		return $oRep ;
	}
    /**
    * ControleTechnique1*/
	
    function ControleTechnique1() {
        jClasses::inc('publicite~pubSrv');

        $rep = $this->getResponse('htmlFo');

        jClasses::inc('commun~parametre');
        
        $rep->menusActifs = frontHtmlResponse::MENU_ANNONCE_GESTION ;
        $rep->breadCrumb  = array(frontHtmlResponse::MENU_ACCUEIL, frontHtmlResponse::MENU_ANNONCE_GESTION) ;

        $rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/popup.js');
		$rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/pub.js');
        
          

        $rep->bodyTpl = 'annonce~FoAnnonceControleTechnique1';

        //xml pour le header : title, desc, keywords
        jClasses::inc('commun~common');
        $headerContent = common::readXml(PATH_XML_CONTROLE_TECH);
        $rep->title					=	isset($headerContent->title)?$headerContent->title:'' ;
		$headerContent->keywords	=	isset($headerContent->keywords)?$headerContent->keywords:'' ;
		$headerContent->desc		=	isset($headerContent->desc)?$headerContent->desc:'' ;
		$keywords					= "<meta name='keywords' content='" . $headerContent->keywords . "'>" ;
		$description				= "<meta name='Description' content='" . $headerContent->desc. "'>" ;
        $rep->addHeadContent($keywords);
        $rep->addHeadContent($description);
        // ---
        //pubHidden et rightContent
        $paramPub = array('p1'=>PUB_RIGHT_1_ID,'p2'=>PUB_RIGHT_2_ID,'p3'=>PUB_RIGHT_3_ID,'p4'=>PUB_RIGHT_4_ID,'p5'=>PUB_RIGHT_5_ID,'p6'=>PUB_RIGHT_6_ID);
        $rep->body->assignZone('oZonePubHidden', 'commun~FoPubHidden',$paramPub);
        

        $rep->body->assignZone('oZoneRightContent', 'commun~FoRightContent');
        //---
       
        return $rep;
    }
	
	/**
    * PreparerVehicule1*/
	
    function PreparerVehicule1() {
        jClasses::inc('publicite~pubSrv');

        $rep = $this->getResponse('htmlFo');

        jClasses::inc('commun~parametre');
        
        $rep->menusActifs = frontHtmlResponse::MENU_ANNONCE_GESTION ;
        $rep->breadCrumb  = array(frontHtmlResponse::MENU_ACCUEIL, frontHtmlResponse::MENU_ANNONCE_GESTION) ;

        $rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/popup.js');
		$rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/pub.js');
        
        

        $rep->bodyTpl = 'annonce~FoAnnoncePreparerVehicule1';

        //xml pour le header : title, desc, keywords
        jClasses::inc('commun~common');
        $headerContent = common::readXml(PATH_XML_PREPARERVEHICULE);
        $rep->title					=	isset($headerContent->title)?$headerContent->title:'' ;
		$headerContent->keywords	=	isset($headerContent->keywords)?$headerContent->keywords:'' ;
		$headerContent->desc		=	isset($headerContent->desc)?$headerContent->desc:'' ;
		$keywords					= "<meta name='keywords' content='" . $headerContent->keywords . "'>" ;
		$description				= "<meta name='Description' content='" . $headerContent->desc. "'>" ;
        $rep->addHeadContent($keywords);
        $rep->addHeadContent($description);
        // ---
        //pubHidden et rightContent
        $paramPub = array('p1'=>PUB_RIGHT_1_ID,'p2'=>PUB_RIGHT_2_ID,'p3'=>PUB_RIGHT_3_ID,'p4'=>PUB_RIGHT_4_ID,'p5'=>PUB_RIGHT_5_ID,'p6'=>PUB_RIGHT_6_ID);
        $rep->body->assignZone('oZonePubHidden', 'commun~FoPubHidden',$paramPub);
        

        $rep->body->assignZone('oZoneRightContent', 'commun~FoRightContent');
        //---
       
        return $rep;
    }
	
	/**
    * PreparerVehicule2*/
	
    function PreparerVehicule2() {
        jClasses::inc('publicite~pubSrv');

        $rep = $this->getResponse('htmlFo');

        jClasses::inc('commun~parametre');
        
        $rep->menusActifs = frontHtmlResponse::MENU_ANNONCE_GESTION ;
        $rep->breadCrumb  = array(frontHtmlResponse::MENU_ACCUEIL, frontHtmlResponse::MENU_ANNONCE_GESTION) ;

        $rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/popup.js');
		$rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/pub.js');
        
            

        $rep->bodyTpl = 'annonce~FoAnnoncePreparerVehicule2';

        //xml pour le header : title, desc, keywords
        jClasses::inc('commun~common');
        $headerContent = common::readXml(PATH_XML_PREPARERVEHICULE2);
        $rep->title					=	isset($headerContent->title)?$headerContent->title:'' ;
		$headerContent->keywords	=	isset($headerContent->keywords)?$headerContent->keywords:'' ;
		$headerContent->desc		=	isset($headerContent->desc)?$headerContent->desc:'' ;
		$keywords					= "<meta name='keywords' content='" . $headerContent->keywords . "'>" ;
		$description				= "<meta name='Description' content='" . $headerContent->desc. "'>" ;
        $rep->addHeadContent($keywords);
        $rep->addHeadContent($description);
        // ---
        //pubHidden et rightContent
        $paramPub = array('p1'=>PUB_RIGHT_1_ID,'p2'=>PUB_RIGHT_2_ID,'p3'=>PUB_RIGHT_3_ID,'p4'=>PUB_RIGHT_4_ID,'p5'=>PUB_RIGHT_5_ID,'p6'=>PUB_RIGHT_6_ID);
        $rep->body->assignZone('oZonePubHidden', 'commun~FoPubHidden',$paramPub);
        

        $rep->body->assignZone('oZoneRightContent', 'commun~FoRightContent');
        //---
       
        return $rep;
    }
	
	/**
    * PasserControleTechnique*/
	
    function PasserControle() {
        jClasses::inc('publicite~pubSrv');

        $rep = $this->getResponse('htmlFo');

        jClasses::inc('commun~parametre');
        
        $rep->menusActifs = frontHtmlResponse::MENU_ANNONCE_GESTION ;
        $rep->breadCrumb  = array(frontHtmlResponse::MENU_ACCUEIL, frontHtmlResponse::MENU_ANNONCE_GESTION) ;

        $rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/popup.js');
		$rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/pub.js');
        
        

        $rep->bodyTpl = 'annonce~FoAnnoncePasserControle';

        //xml pour le header : title, desc, keywords
        jClasses::inc('commun~common');
        $headerContent = common::readXml(PATH_XML_PASSECONTROLE);
		$rep->title					=	isset($headerContent->title)?$headerContent->title:'' ;
		$headerContent->keywords	=	isset($headerContent->keywords)?$headerContent->keywords:'' ;
		$headerContent->desc		=	isset($headerContent->desc)?$headerContent->desc:'' ;
		$keywords					= "<meta name='keywords' content='" . $headerContent->keywords . "'>" ;
		$description				= "<meta name='Description' content='" . $headerContent->desc. "'>" ;
        $rep->addHeadContent($keywords);
        $rep->addHeadContent($description);
        // ---
        //pubHidden et rightContent
        $paramPub = array('p1'=>PUB_RIGHT_1_ID,'p2'=>PUB_RIGHT_2_ID,'p3'=>PUB_RIGHT_3_ID,'p4'=>PUB_RIGHT_4_ID,'p5'=>PUB_RIGHT_5_ID,'p6'=>PUB_RIGHT_6_ID);
        $rep->body->assignZone('oZonePubHidden', 'commun~FoPubHidden',$paramPub);
        

        $rep->body->assignZone('oZoneRightContent', 'commun~FoRightContent');
        //---
       
        return $rep;
    }
	
	/**
    * DocumentdeVente*/
	
    function DocumentVente() {
        jClasses::inc('publicite~pubSrv');

        $rep = $this->getResponse('htmlFo');

        jClasses::inc('commun~parametre');
        
        $rep->menusActifs = frontHtmlResponse::MENU_ANNONCE_GESTION ;
        $rep->breadCrumb  = array(frontHtmlResponse::MENU_ACCUEIL, frontHtmlResponse::MENU_ANNONCE_GESTION) ;

        $rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/popup.js');
		$rep->addJSLink($GLOBALS['gJConfig']->urlengine['basePath'].'design/front/js/pub.js');
        
        

        $rep->bodyTpl = 'annonce~FoAnnonceDocumentVente';

        //xml pour le header : title, desc, keywords
        jClasses::inc('commun~common');
        $headerContent = common::readXml(PATH_XML_DOCUMENTVENTE);
        $rep->title					=	isset($headerContent->title)?$headerContent->title:'' ;
		$headerContent->keywords	=	isset($headerContent->keywords)?$headerContent->keywords:'' ;
		$headerContent->desc		=	isset($headerContent->desc)?$headerContent->desc:'' ;
		$keywords					= "<meta name='keywords' content='" . $headerContent->keywords . "'>" ;
		$description				= "<meta name='Description' content='" . $headerContent->desc. "'>" ;
        $rep->addHeadContent($keywords);
        $rep->addHeadContent($description);
        // ---
        //pubHidden et rightContent
        $paramPub = array('p1'=>PUB_RIGHT_1_ID,'p2'=>PUB_RIGHT_2_ID,'p3'=>PUB_RIGHT_3_ID,'p4'=>PUB_RIGHT_4_ID,'p5'=>PUB_RIGHT_5_ID,'p6'=>PUB_RIGHT_6_ID);
        $rep->body->assignZone('oZonePubHidden', 'commun~FoPubHidden',$paramPub);
        

        $rep->body->assignZone('oZoneRightContent', 'commun~FoRightContent');
        //---
       
        return $rep;
    }
}